
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.Nation;
import com.cmc.dao.NationDao;
import com.cmc.service.NationManager;
/*
* @aegis.mapping
*/
public class NationManagerImpl extends BaseManager implements NationManager {
    private NationDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setNationDao(NationDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.NationManager#getNations(com.cmc.model.Nation)
     */
    public List getNations(final Nation nation) {
        return dao.getNations(nation);
    }

    /**
     * @see com.cmc.service.NationManager#getNation(String id)
     */
    public Nation getNation(final String id) {
        return dao.getNation(new Long(id));
    }

    /**
     * @see com.cmc.service.NationManager#saveNation(Nation nation)
     */
    public void saveNation(Nation nation) {
        dao.saveNation(nation);
    }

    /**
     * @see com.cmc.service.NationManager#removeNation(String id)
     */
    public void removeNation(final String id) {
        dao.removeNation(new Long(id));
    }
}
